package com.gateway.jug.interfaces;

import android.os.Parcel;
import android.os.Parcelable;

public final class FuzzInfo implements Parcelable {

	public double hspeed;
	public double pspeed;
	public double hdistance;
	public double pdistance;
	public double currentlong;
	public double currentlat;
	public String units;
	public double totalSpeed;
	public double totalHDistance;
	public double totalPDistance;

    public static final Parcelable.Creator<FuzzInfo> CREATOR = new Parcelable.Creator<FuzzInfo>() {
		public FuzzInfo createFromParcel(Parcel in) {
		    return new FuzzInfo(in);
		}
		
		public FuzzInfo[] newArray(int size) {
		    return new FuzzInfo[size];
		}
    };

    public FuzzInfo() {
    	
    }
    
	private FuzzInfo(Parcel in) {
        hspeed = in.readDouble();
        pspeed = in.readDouble();
        hdistance = in.readDouble();
        pdistance = in.readDouble();
        currentlong = in.readDouble();
        currentlat = in.readDouble();
		units = in.readString();
		totalSpeed = in.readDouble();
		totalHDistance = in.readDouble();
		totalPDistance = in.readDouble();
	}
    
	@Override
	public int describeContents() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		// TODO Auto-generated method stub
		dest.writeDouble(hspeed);
		dest.writeDouble(pspeed);
		dest.writeDouble(hdistance);
		dest.writeDouble(pdistance);
		dest.writeDouble(currentlong);
		dest.writeDouble(currentlat);
		dest.writeString(units);
		dest.writeDouble(totalSpeed);
		dest.writeDouble(totalHDistance);
		dest.writeDouble(totalPDistance);
	}	
}
